package AAA.service;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component("loginAspect")
@Aspect
public class LoginAspect {

    //切面 = 通知 + 切点
    @Before("execution(* AAA.service.UserService.*(..))")
    public void advice(){
        System.out.println("我是一个增强代码");
    }


}
